{% extends 'CHOMPSGIBundle:Seguridad:base.html.twig' %}
{% set active_page = "" %}
{% block subtitle %} Ver {% endblock %} 

{% block content %} 

    {{ parent() }}
    <div class="row-fluid">
        <a class="btn btn-success text-left" href="{{ path("rol_nuevo") }}">Crear Rol</a>
        <a class="btn btn-danger btnBorrar" > Eliminar </a>
    </div>
    
    <div class="row-fluid" style="margin-top: 10px">
        <table class="table table-condensed listado">
            <tr>
                <th> &nbsp; </th>
                <th>Id</th>
                <th> Nombre</th>
                <th> Descripci&oacute;n</th>
            </tr>

            {% for rol in roles %}
                <tr>
                    <td> <input type="checkbox" id="{{rol.id}}" name="{{rol.id}}"/></td> 
                    <td> {{ rol.id }}</td>
                    <td> <a href="{{ path('rol_ver',{ 'id': rol.id } ) }}"> {{rol.nombre | default("") }} </a></td>
                    <td> {{ rol.descripcion }}</td>
                </tr>
                    
            {% endfor %}
        </table>
    </div>
    <script>
        activarActionsTab('roles');
    </script>
    
{% endblock %}
